﻿/// <reference path="_namespace.js" />

/*****************************************************************************
Ajax library class definition. Kevin Robinson 2008.
Class: ajax.xna.SimpleSprite
/*****************************************************************************/
ajax.lang.addNamespace("ajax.xna");
$imports("ajax.math.Vector3");

ajax.xna.SimpleSprite = function(x, y, texNum)
{
    this.position = new ajax.math.Vector3(x, y, 0);
    this.texNum = texNum;
}

ajax.xna.SimpleSprite.cast = function(obj)
{///<returns type="ajax.xna.SimpleSprite"/>
    return obj;
}

ajax.xna.SimpleSprite.prototype = 
{
    position: ajax.math.Vector3.prototype,
    texNum: 0,
    distance: 0
}